﻿using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.Domain.Entities.Auditing;

namespace EcoSystem
{
    /// <summary>
    /// 附件配置
    /// </summary>
    public class AttachmentConfig : FullAuditedAggregateRoot<Guid>
    {
        [MaxLength(64)]
        public string BussinessType { get; set; }

        /// <summary>
        /// 分组名称
        /// </summary>
        [MaxLength(64)]
        public string GroupName { get; set; }

        /// <summary>
        /// 附件自定义字段
        /// </summary>
        public AttachmentFieldCollection DefineFields { get; set; }

        /// <summary>
        /// 最大允许附件条数
        /// </summary>
        public Nullable<int> MaxLength { get; set; }
    }

}
